package com.ywjt.platformbusiness.store.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.store.model.IncomeListModel;

import java.util.List;

public class IncomeDetailAdapter extends BaseQuickAdapter<IncomeListModel.ResultDTO, BaseViewHolder> {

    public IncomeDetailAdapter(@Nullable List<IncomeListModel.ResultDTO> data) {
        super(R.layout.item_income_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, IncomeListModel.ResultDTO item) {
        helper.setText(R.id.tvOrderNumber,"订单编号："+item.getOrderNumber());
        helper.setText(R.id.tvCreateTime,item.getCreateTime());
        helper.setText(R.id.tvIncome,item.getMoney()+"");
    }
}
